package com.xz.simplerpc.console.domain;

import java.io.Serializable;

/**
 * Created by fingal on 2018/1/14.
 */
public class Result implements Serializable {
    public boolean success = true;
    public String msg = "操作成功";
    public Object data;

    public static final Result DEFAULT = new Result();

    public Result() {
    }

    public Result(boolean success, String msg, Object data) {
        this.success = success;
        this.msg = msg;
        this.data = data;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
